package com.ym.b2b.provider.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.provider.sqlbean.EmBProviderProduct;
import com.zc.commons.base.Page;

public interface EmBProviderProductDAO {

    Long searchPageEmBProviderProductNum(EmBProviderProduct embproviderproduct) throws DataAccessException;

    public Page searchPageEmBProviderProduct(EmBProviderProduct embproviderproduct, Page<EmBProviderProduct> page)
                                                                                                                  throws DataAccessException;

    void insertEmBProviderProduct(EmBProviderProduct record) throws DataAccessException;

    int updateEmBProviderProduct(EmBProviderProduct record) throws DataAccessException;

    EmBProviderProduct searchEmBProviderProduct(Long providerProductId) throws DataAccessException;

    void deleteEmBProviderProduct(EmBProviderProduct record) throws DataAccessException;

    void deleteMultipleEmBProviderProducts(String providerProductIdList);
    
    /**
     * 根据providerCode查询所属产品list
     * <p>Title: getProviderProductList</p>
     */
    public List<EmBProviderProduct> getProviderProductList(String providerCode)throws DataAccessException;
}
